import service from '@/utils/request'

// @Tags ServiceCenter
// @Summary 创建ServiceCenter
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ServiceCenter true "创建ServiceCenter"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /serviceCenter/createServiceCenter [post]
export const createServiceCenter = (data) => {
  return service({
    url: '/fdHealthManager/createServiceCenter',
    method: 'post',
    data
  })
}

// @Tags ServiceCenter
// @Summary 删除ServiceCenter
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ServiceCenter true "删除ServiceCenter"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /serviceCenter/deleteServiceCenter [delete]
export const deleteServiceCenter = (data) => {
  return service({
    url: '/fdHealthManager/deleteServiceCenter',
    method: 'delete',
    data
  })
}

// @Tags ServiceCenter
// @Summary 删除ServiceCenter
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除ServiceCenter"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /serviceCenter/deleteServiceCenter [delete]
export const deleteServiceCenterByIds = (data) => {
  return service({
    url: '/fdHealthManager/deleteServiceCenterByIds',
    method: 'delete',
    data
  })
}

// @Tags ServiceCenter
// @Summary 更新ServiceCenter
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ServiceCenter true "更新ServiceCenter"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /serviceCenter/updateServiceCenter [put]
export const updateServiceCenter = (data) => {
  return service({
    url: '/healthManager/updateServiceCenter',
    method: 'put',
    data
  })
}

// @Tags ServiceCenter
// @Summary 用id查询ServiceCenter
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ServiceCenter true "用id查询ServiceCenter"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /serviceCenter/findServiceCenter [get]
export const findServiceCenter = (params) => {
  return service({
    url: '/healthManager/findServiceCenter',
    method: 'get',
    params
  })
}

// @Tags ServiceCenter
// @Summary 分页获取ServiceCenter列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取ServiceCenter列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /serviceCenter/getServiceCenterList [get]
export const getServiceCenterList = (params) => {
  return service({
    url: '/healthManager/getServiceCenterList',
    method: 'get',
    params
  })
}
